﻿using Grpc.Core;
using GrpcServices;
using System;
using System.Threading.Tasks;

namespace GrpcServerDemo.GrpcServices
{
    public class TestService :TestGrpc.TestGrpcBase
    {
        public override Task<CreateResult> Create(CreateCommand request, ServerCallContext context)
        {
            throw new Exception("test error");
            return Task.FromResult(new CreateResult { TestId = Guid.NewGuid().ToString() });
        }
    }
}
